package com.caopeng.javaee.service.ServiceImpl;

import com.caopeng.javaee.dao.WorkJpa;
import com.caopeng.javaee.entity.work;
import com.caopeng.javaee.service.WorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: javaee
 * @description: work实现接口
 * @author: caopeng
 * @create: 2018-12-14 18:22
 **/
@Service
//service注解写在接口实现类这边否则就会报错500
public class WorkServiceImpl implements WorkService {
    @Autowired
    private WorkJpa workJpa;
    @Override
    public List<work> WfindbyCourseid(String courseid) {
        return workJpa.findByCourseId(courseid);
    }
}

